package com.gsy.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.gsy.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.sql.Timestamp;

/**
 * <p>
 * 
 * </p>
 *
 * @author gsy
 * @since 2022-03-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tb_opinions")
@ApiModel(value="OpinionsEntity对象", description="")
public class OpinionsEntity extends BaseEntity {

    @TableId(type = IdType.AUTO)
    protected Long id;

    @ApiModelProperty(name = "意见内容", value = "意见内容", dataType = "String", example = "意见内容")
    private String content;

    @ApiModelProperty(name = "所指向的教师id", value = "所指向的教师id", dataType = "Integer", example = "所指向的教师id")
    private Integer teacherId;

    @ApiModelProperty(name = "提意见的学生id", value = "提意见的学生id", dataType = "Integer", example = "提意见的学生id")
    private Integer studentId;

    @ApiModelProperty(name = "状态（0未读，1已读）", value = "状态（0未读，1已读", dataType = "Short", example = "状态（0未读，1已读")
    private Short status;

    @TableField(fill = FieldFill.INSERT)
    protected Timestamp createTime;

}
